Optimal. Leaf size=59 \[ -\frac {(b c-a d)^2}{2 b^3 (a+b x)^2}-\frac {2 d (b c-a d)}{b^3 (a+b x)}+\frac {d^2 \log (a+b x)}{b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {45}
\begin {gather*} -\frac {2 d (b c-a d)}{b^3 (a+b x)}-\frac {(b c-a d)^2}{2 b^3 (a+b x)^2}+\frac {d^2 \log (a+b x)}{b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rubi steps
\begin {align*} \int \frac {(c+d x)^2}{(a+b x)^3} \, dx &=\int \left (\frac {(b c-a d)^2}{b^2 (a+b x)^3}+\frac {2 d (b c-a d)}{b^2 (a+b x)^2}+\frac {d^2}{b^2 (a+b x)}\right ) \, dx\\ &=-\frac {(b c-a d)^2}{2 b^3 (a+b x)^2}-\frac {2 d (b c-a d)}{b^3 (a+b x)}+\frac {d^2 \log (a+b x)}{b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 49, normalized size = 0.83 \begin {gather*} \frac {-\frac {(b c-a d) (3 a d+b (c+4 d x))}{(a+b x)^2}+2 d^2 \log (a+b x)}{2 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 69, normalized size = 1.17
method | result | size |
risch | \(\frac {\frac {2 d \left (a d -b c \right ) x}{b^{2}}+\frac {3 a^{2} d^{2}-2 a b c d -b^{2} c^{2}}{2 b^{3}}}{\left (b x +a \right )^{2}}+\frac {d^{2} \ln \left (b x +a \right )}{b^{3}}\) | \(67\) |
default | \(\frac {2 d \left (a d -b c \right )}{b^{3} \left (b x +a \right )}-\frac {a^{2} d^{2}-2 a b c d +b^{2} c^{2}}{2 b^{3} \left (b x +a \right )^{2}}+\frac {d^{2} \ln \left (b x +a \right )}{b^{3}}\) | \(69\) |
norman | \(\frac {\frac {3 a^{2} d^{2}-2 a b c d -b^{2} c^{2}}{2 b^{3}}+\frac {2 \left (a \,d^{2}-b d c \right ) x}{b^{2}}}{\left (b x +a \right )^{2}}+\frac {d^{2} \ln \left (b x +a \right )}{b^{3}}\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 79, normalized size = 1.34 \begin {gather*} -\frac {b^{2} c^{2} + 2 \, a b c d - 3 \, a^{2} d^{2} + 4 \, {\left (b^{2} c d - a b d^{2}\right )} x}{2 \, {\left (b^{5} x^{2} + 2 \, a b^{4} x + a^{2} b^{3}\right )}} + \frac {d^{2} \log \left (b x + a\right )}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.64, size = 99, normalized size = 1.68 \begin {gather*} -\frac {b^{2} c^{2} + 2 \, a b c d - 3 \, a^{2} d^{2} + 4 \, {\left (b^{2} c d - a b d^{2}\right )} x - 2 \, {\left (b^{2} d^{2} x^{2} + 2 \, a b d^{2} x + a^{2} d^{2}\right )} \log \left (b x + a\right )}{2 \, {\left (b^{5} x^{2} + 2 \, a b^{4} x + a^{2} b^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.27, size = 80, normalized size = 1.36 \begin {gather*} \frac {3 a^{2} d^{2} - 2 a b c d - b^{2} c^{2} + x \left (4 a b d^{2} - 4 b^{2} c d\right )}{2 a^{2} b^{3} + 4 a b^{4} x + 2 b^{5} x^{2}} + \frac {d^{2} \log {\left (a + b x \right )}}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.63, size = 68, normalized size = 1.15 \begin {gather*} \frac {d^{2} \log \left ({\left | b x + a \right |}\right )}{b^{3}} - \frac {4 \, {\left (b c d - a d^{2}\right )} x + \frac {b^{2} c^{2} + 2 \, a b c d - 3 \, a^{2} d^{2}}{b}}{2 \, {\left (b x + a\right )}^{2} b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.20, size = 77, normalized size = 1.31 \begin {gather*} \frac {d^2\,\ln \left (a+b\,x\right )}{b^3}-\frac {\frac {-3\,a^2\,d^2+2\,a\,b\,c\,d+b^2\,c^2}{2\,b^3}-\frac {2\,d\,x\,\left (a\,d-b\,c\right )}{b^2}}{a^2+2\,a\,b\,x+b^2\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________